package com.likai.jarscms.service.impl;

import com.likai.jarscms.dao.IJarMapper;
import com.likai.jarscms.pojo.JarBean;
import com.likai.jarscms.service.IJarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by likai on 2018/10/19.
 */
@Service("jarService")
public class IJarServiceImpl implements IJarService {

    @Autowired
    private IJarMapper jarMapper ;

    @Override
    @Transactional(readOnly = true)
    public JarBean findByUuid(String uuid) {
        return jarMapper.selectByPrimaryKey(uuid);
    }

    @Override
    public int updateJarById(JarBean po) {
        return jarMapper.updateByPrimaryKeySelective(po);
    }
}
